#ifndef __TCPSERVER_H__ 
#define __TCPSERVER_H__

#include "Acceptor.hpp"
#include "EventLoop.hpp"

namespace wd{

class TcpServer{

public:
    TcpServer(unsigned short port, string ip = "0.0.0.0");
    void start();
    void stop();
    void setAllCallbacks(TcpConnectionCallback &&cb1, TcpConnectionCallback &&cb2, TcpConnectionCallback &&cb3);

private:
    Acceptor _acceptor;
    EventLoop _loop;



};


}
#endif

